Push

open class Push

Types

Link copied to clipboard
Link copied to clipboard

Functions

Link copied to clipboard
open fun activate(application: Application)
Activate the push notification mode to avoid keeping a web socket opened (reduce the battery consumption).
Link copied to clipboard
Link copied to clipboard
open fun isInBackground(): Boolean
Link copied to clipboard
open fun onMessageReceived(data: Map<String, String>, listener: Push.IMessageReceivedListener)
Use this method in the `onMessageReceived` of your class which extends `FirebaseMessagingService` to allow the RainbowSdk to manage new message received.
Link copied to clipboard
open fun onTokenRefresh(refreshedToken: String)
Use this method in the `onTokenRefresh` of your class which extends `FirebaseInstanceIdService` to allow the RainbowSdk to refresh token if necessary.
Link copied to clipboard